package edu.cuit.zhuyimeng.gateway.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.gateway.route.RouteDefinition;

import java.util.List;
import java.util.Map;
import java.util.Properties;

/**
 * 动态网关权限和路由配置
 */
@ConfigurationProperties(prefix = "gateway")
@Data
public class DynamicGatewayProperties {

    private List<Map<String,Object>> permissions;

    //动态路由配置ID
    private String dataId;

    //动态路由配置group
    private String group;

    //是否开启动态路由
    private Boolean enableDynamicRoutes;
}
